#! /usr/bin/env python
# encoding: utf-8

VERSION='0.1.0'
APPNAME='defl'

import Params
Params.g_autoconfig=1

# these variables are mandatory ('/' are converted automatically)
srcdir = '.'
blddir = 'build'

def set_options(opt):
	opt.tool_options('compiler_d')

def configure(conf):
	conf.env['VERSION'] = VERSION
	conf.check_tool('compiler_d')
	conf.check_tool('substpc')
	conf.check_pkg2('evas', '0.9.9', mandatory=True)
	conf.check_pkg2('ecore', '0.9.9', mandatory=True)

def build(bld):
	bld.add_subdirs('src')
	
	pc = bld.create_obj('substpc')
	pc.source = 'defl.pc.in'
	pc.target = 'defl.pc'
	pc.name = APPNAME
	pc.version = VERSION
	pc.uselib = 'EVAS,ECORE'

